import 'package:flutter_with_bmap/entity/phase.dart';
import 'package:json_annotation/json_annotation.dart';

part 'light_hv.g.dart';

@JsonSerializable(explicitToJson: true)
class LightHv {
  String device_id;
  double longitude;
  double latitude;
  double altitude;
  List<Phase> phases;
  LightHv(this.device_id, this.longitude, this.latitude, this.altitude,
      this.phases);
  factory LightHv.fromJson(Map<String, dynamic> json) =>
      _$LightHvFromJson(json);
  Map<String, dynamic> toJson() => _$LightHvToJson(this);
}
